import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', () => {
 const user = ref({})
 const changeUser = (value) => {
  user.value = value
 }

  return {
    user,
    changeUser,
   }
},{
  persist: true
})
